home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 13910 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  895 b 

  1. Path: utpapa.ph.utexas.edu!tian
  2. From: tian@utpapa.ph.utexas.edu (Shiyang Tian)
  3. Newsgroups: comp.lang.c++
  4. Subject: what's incomplete type?
  5. Date: 27 Mar 1996 22:08:18 GMT
  6. Organization: Physics Department, University of Texas at Austin
  7. Message-ID: <4jce8i$7ge@geraldo.cc.utexas.edu>
  8. NNTP-Posting-Host: utpapa.ph.utexas.edu
  9.  
  10. Hi,
  11.  
  12. I am using gcc version 2.6.3. When I tried to debug the code using 
  13. gdb (v4.14), I got the <incomplete type> problem>. gdb printed out
  14. something like:
  15.  
  16. myClass::do_it(this=<incomplete type>, def=<incomplete type>)
  17.     at myclass.cc:89
  18.  
  19. When I tried to do "print *this", gdb said:
  20.  
  21. Attempt to take contents of a non-pointer value.
  22. or sometimes:
  23. Internal error: `this' is not an aggregate
  24.  
  25. Could anyone please tell me exactly exactly it means by "incomplete
  26. type"? What's the possible reason for this "incomplete type"?
  27.  
  28. Any information is greatly appreciated.
  29.  
  30.  -- Tian
  31.